package net.begincode.service;

import net.begincode.mapper.TestMapper;
import net.begincode.model.Test;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by saber on 2017/6/1.
 */
@Service
public class TestService {

    @Resource
    private TestMapper testMapper;

    public String getName(Integer id){
        Test test = testMapper.selectByPrimaryKey(id);
        return test.getName();
    }
}
